package com.chandon.juc.threadPool;

import java.util.concurrent.*;

/**
 * @author Chandon
 */

public class TestThreadPoolExecutor {
	private static final int TIDYING = 2 << 29;

	public static void main(String[] args) throws InterruptedException {
	ThreadPoolExecutor executor=	new ThreadPoolExecutor(4,8,10,TimeUnit.SECONDS,
				new ArrayBlockingQueue<>(10),new NamedThreadFactory("named"), new ThreadPoolExecutor.AbortPolicy());

		executor.awaitTermination(10,TimeUnit.SECONDS);
	}
}
